﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPizaPiola.master" AutoEventWireup="true" CodeFile="frmPermisosABM.aspx.cs" Inherits="frmPermisosABM" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <script language="javascript" type="text/javascript">
        function ValidarClase(source, arguments) {
            if (arguments.Value < 1) {
                arguments.IsValid = false;
            }
            else {
                arguments.IsValid = true;
            }
        }
    </script>   
    <style type="text/css">
        .style7
        {
            width: 100%;
        }
        .style8
        {
            width: 90px;
        }
        .style9
        {
            width: 266px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <table class="style7">
        <tr>
            <td align="center" colspan="3">
                <asp:Label ID="LblTitulo" runat="server" Font-Bold="True" Font-Italic="True" 
                    Font-Size="Large" Text="Permisos"></asp:Label>
            </td>
        </tr>
        <tr>
            <td class="style8">
                <asp:Label ID="LblClase" runat="server" Text="Clase"></asp:Label>
            </td>
            <td class="style9">
                <asp:DropDownList ID="DropClase" runat="server">
                </asp:DropDownList>
            </td>
            <td>
                <asp:CustomValidator ID="CustomValidator1" runat="server" 
                    ClientValidationFunction="ValidarClase" ControlToValidate="DropClase" 
                    ErrorMessage="Seleccione una Clase valida" 
                    onservervalidate="CustomValidator1_ServerValidate">*</asp:CustomValidator>
            </td>
        </tr>
        <tr>
            <td class="style8">
                <asp:Label ID="LblMetodo" runat="server" Text="Metodo"></asp:Label>
            </td>
            <td class="style9">
                <asp:TextBox ID="TextMetodo" runat="server"></asp:TextBox>
            </td>
            <td>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                    ControlToValidate="TextMetodo" ErrorMessage="RequiredFieldValidator">*</asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="style8">
                <asp:Label ID="LblDescripcion" runat="server" Text="Descripcion:"></asp:Label>
            </td>
            <td class="style9">                
                <asp:TextBox ID="TextDescripcion" runat="server"></asp:TextBox>
            </td>
            <td>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                    ControlToValidate="TextDescripcion" ErrorMessage="RequiredFieldValidator">*</asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="style8">
                &nbsp;</td>
            <td class="style9">
                <asp:ValidationSummary ID="ValidationSummary1" runat="server" />
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style8">
                &nbsp;</td>
            <td class="style9">
                <asp:Button ID="btnAceptar" runat="server" Text="Aceptar" />
                <asp:Button ID="btnCancelar" runat="server" Text="Cancelar" />
            </td>
            <td>
                &nbsp;</td>
        </tr>
    </table>
</asp:Content>

